package com.igorkundovic.guitarstab.beans;

import java.util.LinkedList;
import java.util.List;

import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;

import com.igorkundovic.guitarstab.Artist;
import com.igorkundovic.guitarstab.Genre;
import com.igorkundovic.guitarstab.Tab;
import com.igorkundovic.guitarstab.User;

@Entity
public class TabBean implements Tab {
	@Id
	@GeneratedValue
	private Long id;
	@Basic
	private String name;
	@Basic
	private String path;
	@Basic
	private Genre genre;
	@OneToOne(targetEntity=ArtistBean.class,cascade=CascadeType.ALL)
	private Artist artist;
	@OneToOne(targetEntity=UserBean.class,cascade=CascadeType.ALL)
	private User user;
	
	
	
	
	public TabBean() {
		// TODO Auto-generated constructor stub
	}
	
	public String getName() {
		// TODO Auto-generated method stub
		return name;
	}

	public String getPath() {
		// TODO Auto-generated method stub
		return path;
	}

	public void setName(String name) {
		// TODO Auto-generated method stub
		this.name = name;
	}

	public void setPath(String path) {
		// TODO Auto-generated method stub
		this.path = path;
	}

	public Long getId() {
		// TODO Auto-generated method stub
		return id;
	}

	public User getUser() {
		// TODO Auto-generated method stub
		return user;
	}

	public void setUser(User user) {
		// TODO Auto-generated method stub
		this.user = user;
	}

	public Genre getGenre() {
		return genre;
	}

	public void setGenre(Genre genre) {
		this.genre=genre;
		
	}

	public Artist getArtist() {
		// TODO Auto-generated method stub
		return artist;
	}

	public void setArtist(Artist artist) {
		// TODO Auto-generated method stub
		this.artist=artist;
	}



}
